package com.atguigu.commom.utils;

import com.atguigu.spzx.model.entity.h5.UserInfo;
import com.atguigu.spzx.model.entity.sys.SysUser;

/**
 * title:
 * author: zgl
 * date: 2024/1/8
 * description：
 */
public class ThreadLocalUtil {
    public static final ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();


    public static void set(SysUser sysUser) {
        threadLocal.set(sysUser);
    }

    public static SysUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
